//
//  SubCategorySelectCell.m
//  quanminzhekou
//
//  Created by zxl on 15/1/12.
//  Copyright (c) 2015年 zhongqinglongtu. All rights reserved.
//

#import "SubCategorySelectCell.h"

@implementation SubCategorySelectCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _subTitleLab = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 168, 48)];
        _subTitleLab.textAlignment = NSTextAlignmentCenter;
        _subTitleLab.font = [UIFont systemFontOfSize:14];
        [self.contentView addSubview:_subTitleLab];
    }
    
    return self;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModel:(SubCategoryModel *)model {
    _model = model;
    _subTitleLab.text = model.nameStr;
}

@end
